import request from '@/utils/request';

export async function getComplaintDetailsByPage (params: any) {
    return request('/api/quality/getComplaintDetailsByPage', {
    method: 'POST',
    data: params,
  });
}



export async function addComplaintDetails (params: any) {
    return request('/api/quality/addComplaintDetails', {
    method: 'POST',
    data: params,
  });
}

export async function updateComplaintDetails (params: any) {
    return request('/api/quality/updateComplaintDetails', {
    method: 'POST',
    data: params,
  });
}

export async function delComplaintDetails (params: any) {
    return request('/api/quality/delComplaintDetails', {
    method: 'POST',
    data: params,
  });
}


export async function exportComplaintDetails(params: any) {
    return request('/api/quality/exportComplaintDetails', {
    method: 'POST',
    data: params,
    responseType: 'blob',
  });
}
export default { getComplaintDetailsByPage, addComplaintDetails, updateComplaintDetails, delComplaintDetails, exportComplaintDetails }
